@extends("layouts.master")

@section("body")
<div class="col-lg-12">
	<div class="panel panel-default">
        <div class="panel-heading">
            <h2><i class="fa fa-indent red"></i><strong>新建用户</strong></h2>
        </div>
        <div class="panel-body">
			<form class="form-horizontal" role="form">
                <div class="form-group">
                    <label class="col-lg-2 col-md-2 col-sm-12 control-label">用户账号</label>
                    <div class="col-lg-10 col-md-10">
                        <input id='username' type="text" class="form-control">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-lg-2 col-md-2 col-sm-12 control-label">用户姓氏</label>
                    <div class="col-lg-10 col-md-10">
                        <input id="last_name" type="text" class="form-control">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-lg-2 col-md-2 col-sm-12 control-label">用户名称</label>
                    <div class="col-lg-10 col-md-10">
                        <input id="first_name" type="text" class="form-control">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-lg-2 col-md-2 col-sm-12 control-label">用户密码</label>
                    <div class="col-lg-10 col-md-10">
                        <input id="password" type="password" class="form-control">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-lg-2 col-md-2 col-sm-12 control-label">用户角色</label>
                    <div class="col-lg-10 col-md-10">
                        <select id="role_id" class="form-control" data-rel="chosen">
                            @foreach($roles as $role)
                                <option value="{{ $role->id }}">{{ $role->slug }}</option>
                            @endforeach
                        </select>
                    </div>
                </div>
                <div class="form-actions" style="text-align: center;">
                    <button id="create_btn" type="button" class="btn btn-primary">新建</button>
                    <button id="cancel_btn" type="button" class="btn btn-default">取消</button>
                </div>
            </form>
		</div>						
    </div>
</div>

@stop

@section('js')
    <script type="text/javascript" src="/js/js/pages/user/create.js"></script>
@stop